Adding Justin's printErrorLog method and using it in major and course schedule