refining the example -- still does not add entries to the maps correctly...