chapter 5, before defining models in python