working and unit tested group-class