use implicit do form for side-effects
Merge pull request #8 from kgann/side_effects

use implicit do form for side-effects