Add code for quiting course