last version. Memory AN model