Trying lambdas with java 8