small refactoring of flash signup and other exercises, ch 7.6