Chapter2 logan

Chapter 2 is done, merging all examples and summary.