Solution to Assignment 9