adding problem 5 PHP code