3 body system under gravitational force