define Coordinates instance outside draw() method