A basic application of the Strategy design pattern using the Function functional interface of Java 8