feature/group-discounts: clarified the code somewhat