Example of object oriented php