ex 9 - map method