Java Course - Assignment 3