Object oriented programming with PHP