Added the codes for exercise 8.2
Added the codes for exercise 8.3
Added the codes for exercise 8.4