refactor out chr stop start index class