Practice with Java project 2