solved problem 6 and updated readME.md