ex. 5.13 - map via unfold - working implementation but check against solution provided