Fixed Java 8 example