added course_code method to ensure uniqueness of course codes for new code instances. Might need tweaking though...