add memo.md and implement spec5, 7