Homework for the first JAVA series class