Source codes from Professional PHP6 book