Changed IndexOutOfBoundsExceptions to NoSuchElementExceptions
added type argument as to not extend a raw type