An attempt to make PHP more OOP