Add pair_students function for final functionality