Group theory code