solutions for exercise 412 5667172