Solving defining classes part 2 homework.