ToDo List with functions

Simplified code with functions