#include "cgiskel.h"

class MyCGI : public CGIObject {
  void ProduceOutput();
};

void MyCGI::ProduceOutput() {
  m_HTMLOutput << m_header << endl; 
  // Show the user what s/he entered in the "arg1" form field
  if (m_value["arg1"] != "") {
    m_HTMLOutput << m_value["arg1"] << endl;
  }
  else
    cout << "No value entered on the form" << endl;
  m_HTMLOutput << m_footer << endl;
};

void main(int argc, char **argv) {
  // instantiation and execution of the object 
  MyCGI cgiObj;

  cgiObj = new MyCGI();
  cgiObj.Execute;
};