review for two memory models