correct return type of add and delete course method