Converted some Java 8 examples to use method references