creating courses model