I think you have to remove the semicolon at the end of line 15. From what I see, this is not a logic error, rather than a syntax error.Looking at the error on the bottom, it's expecting a '(' before the '{'.
8.3m questions
10.9m answers