group class as binary problem