adding david/malcolm work to respository

this is some great code