added hw3 q 1 and 3