Assignment 2 Q1 and 2