wrote get_coordinates()