Added the memory reference generator class.