ruby bits 2 solution 3 - multiple lambdas