Assignments from Object Oriented Design in Java