Added some methods for the course repository