Design a class for modeling course and write a test program to test it.