exercise 14-2: test Student grading program using Ptr<Core>