adding a OOP example from class