Assignment 3 Part I Solution