Store coordinates in a vector instead