add functions chapter 07