added affinityTo() method, also added a check to see if a certain student is in a given group