code in book: C Interfaces and Implementations