An attempt to make PHP more object-oriented