Added chapter 6. Advanced topics.