define add/rmv functions for courses