Todo app in Java