finished KvcFun (chapter 7)