course assignment script

Completed script for the assignment.