add memory notes from lecture 6