..
some solutions with java 8 lambdas