Sample code for Java 8 study