Assignment 3 Problem 1 and 2