Working in its favor is a social contract with a three-part system established in every country in the 
( ( Working ( in ( its favor ) ) ) ( is ( ( a ( social contract ) ) ( with ( ( a ( three-part system ) ) ( established ( in ( ( every country ) ( in the ) ) ) ) ) ) ) ) )
(ROOT (S (NP (NP (NNP Working)) (PP (IN in) (NP (PRP$ its) (NN favor)))) (VP (VBZ is) (NP (NP (DT a) (JJ social) (NN contract)) (PP (IN with) (NP (NP (DT a) (JJ three-part) (NN system)) (VP (VBN established) (PP (IN in) (NP (NP (DT every) (NN country)) (PP (IN in) (NP (DT the))))))))))))
The system established in every country had two parts. 
( ( ( The system ) ( established ( in ( every country ) ) ) ) ( ( had ( two parts ) ) . ) )
(ROOT (S (NP (NP (DT The) (NN system)) (VP (VBN established) (PP (IN in) (NP (DT every) (NN country))))) (VP (VBD had) (NP (CD two) (NNS parts))) (. .)))