Sample code for new Java 8