chapter 4 done and added a helper.