fixed structure of php exercise code