Added code for section 1.3