examples: move initialization out of assert()s