Modularizing course types into single classes and creating methods to insert a master degree course