exercises 3.05 and 06