Class refactor, added nthFromEnd() (NOT TESTED YET)