Adding pseudo handling of exception in student