Added code for all the chapters