Functional sample with java 8