Solution for Assignment 9