Base code for the todo