Script for assignment 2