added -c option for listing courses with corresponding id