redo of w1d1 array examples with TDD/rspec