ex OOP

exercise for object oriented programming