added example for doing N things