Chapter 3 Completion

Completion of chapter 3 exercises.