Added an exit in case no students were enrolled