script for assignment 3