Added the codes for exercise 7.5
Added the codes for exercise 7.6