Chap 2.1/2.2 exercise