Advanced setup for chapter 3