The second example plays a little loose with the pattern. For instance, instead of giving information to the questioner, the narrator gives information to us, the reader.
And a dialogue fragment is used as part of the emotional reaction.
For this lesson, you don't want to break the pattern completely, but it's okay to play a little within the bounds so long as the meaning is still the same.