Ruby: To-do list application