added average functionality and no of students in each pointer group functionality