autodiff draft
autodiff wip
generating functions code