add perfect php (chapter 07)