// class for mouse locations class Location { float x; float y; Location(float nx, float ny) { x=nx; y=ny; } }