using high order functions, basic example with map