begin moving toy model code from an example into the main package