Script used to complete assignment 4