exercise 1 object oriented programming