Replace reduce and division with Average.

On a side note, the blog post should be updated to reflect this usage.

Also, the apples example is missing a divide by count.