Re-organize chapter 9 code
Example of imperative and declarative scenarios