code of chapter 4-typing games