Added example code
Finished HW3 problem 2
Finished problem 3