the frames constructor now initializes a frame datamember, also sets class member