['I was so glad that my friend told me something right as I was walking into school.', 'Why, what did he tell you?', 'She told me that we were gonna have a pop quiz in physics that day and we did so I was more prepared for it because of what she said.']
She must really be a good friend, how are you repaying here?
I was walking into school and my friend suddenly told me that there was a pop quiz in physics. I studied for a while before I went into the class and surely enough there was a quiz, so I was very happy that she told me.