added script for programming assignment #2