Functional programming, design chatper - strategy pattern with lambdas