Advanced Java HW 1