clean up code and add dickinson example