Added the code for section 1.1