added a couple of generator function examples