Although I think the indexed version is cleaner than the pointer version here.