wrote a script to get course data