added the second try of OOP, this time with a header file