Assignment 4 Programming Part Solution