Updated todo list to use functions for repetitive  actions