first cut at exercise 1 -- the basic idiom