Updated Student class method checkStudent to pass one student object instead of two.