Demonstration of the power of java 8
lambdas with generics.