Fifth homework for PHP course