code from the headFirstC book goes here