More Java 8 goodies : Reduced duplication in SumGenerator by using Lambdas