Use objects instead of lists for coordinates