Syntax error on line 19: unpaired '{' .
    next {
