adding a few more functions, as well as changing the array.remove.prototype logic