memm model initial commit