Practice with Java project 1