Add memory class.