add example exp.data input
refactored some more - 1st version to pass in exp.data via input argument