Adding index.xts function