Completed chapter 3.
Merge branch 'lottery'