displaying course information split into two functions