Exercise from book PHP for absolute beginners