Added inside and outside loop functionality.  All 19 tests green.