chapter06. BookApp code completed