check 2.3, 2.4, 2.5 with the book
modified 2.1