Adding my homework for java class relations