C code for "Modeling with Data"