Modified code to accept and incorpoate one user input todo item to list