def createCoordinate(x, y): coordinate = Coordinate() coordinate.X = x coordinate.Y = y return coordinate