Java 8 example fixed: lambda expression added