started prob 5
finished prob 5 part b
finished matlab code for prob 5