So I think I\'m overthinking this one, I\'ve managed to create a functional code, but its incredibly slow and I think that if I use Purrr correctly I will see massive improv