richer example of passing in operations