Divide code into groups