Forgot a semicolon in the end of line 16.
Change the magic number 4 to groupSize in the line 18.