exercise 40, 41 and oop_test