exercise 1 of OOP module