failing last element tests
rewrite for more imperative code
all tests pass
0.1.1