include function definitions in example
for reference purposes only
example step-ahead plots #44