shallow nesting
combination of shallow nesting and DRY
first attempt at testing