Changed to prototypical inheritance of SweaterIterator class