Code base for the CQ5 book