import java.io.*; import java.awt.event.*; public class MyWorld implements ActionListener { private MyWorldView view; public MyWorld(){ this(System.out); } public MyWorld(PrintStream output){ view = new MyWorldView(this); } public MyWorldView getView() { return view; } public void actionPerformed (ActionEvent event) { // like simulate method of 1st. Assignment, } }