Code for scala todolist application