wrote script for assignment 8