def print
      list.each do |entry|
        entry.headline ? print_headline(entry) : print_task_description(entry)
      end
    end
def print
      list.each do |entry|
        entry.headline ? print_headline(entry) : print_task_description(entry)
      end
    end
Print the current task list to console.