Understanding the second Beatitude

Those who mourn will be comforted. They search for sinlessness. The past cannot be changed, you can only be comforted in that it was not wasted. It has brought you here where you have found forgiveness.