add problem 1 of oop principles part 1 homework