restructure of stage -added base class for canvas