Added the code for exercise 10.1
Added the code for exercise 10.2
Added the code for exercise 10.3
Added the code for exercise 10.4
Added part two of the codes for exercise 10.4