second attempt at implementing indexor and removeat()