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