Added the codes of exercise12.1
Added the codes of exercise12.2
Added the codes of exercise12.3