an example from the C-programmer instructor