leaveUniversity function