Updated script2 for Assignement 1.5

Updated script2 for Assignement 1.5