A very good friend of mine recently gave me this quote, just in the right moment when it was needed:
"Life gives you the people you need - to teach you, to hurt you, to love you, and to make you exactly the way you are meant to be. "
Everything happens for reason. Try to learn from all kind of experiences. And you´ll find your poem of gratitude.