completed problem 6 & mocha tested it
mocha test