implemented rewards
initial groups implementation