Add class group computation attempt 1