Java Tutorial Assignment 1