not the first attempt but the first I will add to github

this works but could be better implimented.