Completed exercises 4-04 to 4-08.