note updated for chapter2