PHP implementation of Head First Design Pattern book