created add function to todo list