Chain pattern with lambdas