Code for a to-do manager