Programming in Java Assessment 3