Methods for enqueue and dequeue in queue for course