add Dan's code to repo