chapter 4 incomplete; splitlines