demo app from tutorial using generators