Non ci sono problemi a usare lo schema descritto dal tuo libro tutto nel .h.