Social ball code from lecture.