Answered most of Question 4 for Assignment 3