Somehow logic for identifying an already enrolled student got removed
Added two helper functions - enroll and unenroll