using array promising to return courses and it's sections