added a function to print student name and other info