examples from Brian Goetz's talk on Java 8