lec3 Ch2 Exercise