Parse error: syntax error, unexpected '}' in on line 12