getCourse by id method done.