when working with arrays should use splice to remove elements
Merge pull request #8 from dthompson/use_splice

when working with arrays should use splice to remove elements