OOP example in PHP