Added functionality to quit the course