Solutions to Assignment 4