setting up Array.prototype.unit and getting it to produce good results