PHP Objects book work