Assignment 6 Solution