Add examples for chapter 7: Methods