Implemented HW5 Q2 a)
Finished Q2 b)