Add a class called Coordinate and change Listener fix index problem