#10 Array mapping function