ParseError thrown

syntax error, unexpected token "class", expecting "function"