class diagram's (two solutions)