Todo list with refactored code

alternative text