added solution for Ch 7, 8, and 9 exercise