//creates the boxy object to be drawn later: class ObjRect2 { //declares it's going to use the object myPoint based on the class Points Points myPoint; //constructor - creates the relevant point for the boxes to draw: ObjRect2 (Points _myPoint) { myPoint = _myPoint; } //display - defines the function that will draw the boxes acording to the points void display() { rect(myPoint.x-15,myPoint.y-5,10,10); rect(myPoint.x+5,myPoint.y-5,10,10); } }