Adding 4.6, 4.7 and 4.8 problems' solution for Chapter 4