FP with Java 8 and lambdas