Assignment 1 final scripts