Refactor GlowExample