Following a book about OOP in PHP