Examples of using new Java 8 features