fixed up solution to problem 4 and updated readME.md