State Dependent Memory Example