created overload of NextDestination that takes a distribution as a parameter
Merge branch 'master' of https://github.com/sw701e14/code