A task manager in Java