exercises 3.3, 3.4, 3.7, and 3.8