implemented the ordinal index feature