Story1

Please merge this feature.
Same as for the measurement model. See https://gist.github.com/joerx/88f4ce37c1dd44399a3f for an example.