Do exercises 5.2--5.5