solve 3.21 - 3.25