Instead of writing a lambda, one can also just define a function and pass it to the mapping function.