In this task, you need to replace a letter in the sentence with another given letter.
Sentence: 'a man and his children ride a miniature train in front of two older men riding the same train'. Replace the letter 'd' with 'g' in the sentence.