Finish exercises 5.6.1-5.6.4