added an example of using the new stream API in Java 8