Ball b1, b2; void setup() { size(400, 400); smooth(); b1 = new Ball(); b2 = new Ball(); } void draw(){ background(255); b1.update(); b1.display(); b2.update(); b2.display(); }