working on oop part2 homework