Simple example of using method reference with Java 8