Applying functions to transform data