made it work with derivatives
Merge branch 'master' of https://github.com/profLewis/emulate_test