Just enough code to show how to do aggregate math with Core Data.