Homeworks for an object oriented design class in Java