added the codes for first part of exercise6.1
added the codes for first part of exercise6.1.2
added the codes for first part of exercise6.2
added the codes for first part of exercise6.3