Assignment 2 a and b