Can you not do a function. I don't think that it is useful here, and it makes the example more complex.