Added the codee of exercise14.1.js