Soft constraint implementation

Hello, I am working on my own spring constraint and I am trying to use a soft constraint.
The presentation in soft constraints was great, thank you, and i was able to implement a spring connected to a fixed point, now i need to create a soft constraint between two free bodies that both move.
My first attempt I used a mid point distance as fixed and this blew up, the other attempt I used the relative speed of the first body to the second and didnt work either. I am thinking of a system of 2 equations and 2 variables being the speeds of the bodies but this is tedious. Whats the best way to accomplish a spring soft constrain between two free bodies ? If you guys have the equations I will be infinitely thankful
If someone has the same problem here is my solution:
The formula to compute the lambda that i used ended up being
F = ( -(Va-Vb) - (Xa-Xb) * beta / h ) / ( h/Ma + h/Mb + gamma )
where body a = ( Va, Xa )
where body b = ( Vb, Xb )

Original thread: https://box2d.org/forum/viewtopic.php?t=10201