HWs chapter 5: Functions