Implemented Course fetching part of the script