mapFun and lengthFun
week6