Refactor ch01/ex09