added the pet example with lambdas to ch5