OOP class assignment 1