Provide solution to Assignment 2