Adding TranslatedDistribution and improving previous codes according to comments