added course class & query for courses