public class DotRace { private Dot redDot; private Dot blueDot; public DotRace() { this.redDot = new Dot("red"); this.blueDot = new Dot("blue"); } public void step() { this.redDot.step(); this.blueDot.step(); } public void showStatus() { this.redDot.showPosition(); this.blueDot.showPosition(); } public void reset() { this.redDot.reset(); this.blueDot.reset(); } }