exercises 3 through 6