Solve problems 5.1.1, 5.1.2.