Added textbook examples for chapter 2,3,4