public Hw4b()//constructor for Hw4b
{
    //frames are for buttons, panels
    super("anumation");
    setSize(800, 500);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel panel = new JPanel();//draw on panels
    panel.setLayout( new GridLayout(1, 1) );
    //needed to draw on whole panel
    Test test = new Test();
    test.setBackground(Color.blue);
    panel.add(test);
    setContentPane(panel);
    //content panel contains all he gui components
    show();//must appear before begin() is executed
    test.begin();
}

