Programs written for Assignment 3