Moved class defination from the generic.h to class1.cpp file. Added constructor for stack init function. Added destrucor also