As a byproduct of participation, children gain a rich understanding of their own and others' mental lives'powerful tools in predicting and explaining human behavior and, therefore, in getting along with others.
( ( As ( ( a byproduct ) ( of participation ) ) ) ( , ( ( ( ( children ( gain ( ( a ( rich understanding ) ) ( of ( their own ) ) ) ) ) and ) ( ( ( others ' ) mental ) ( ( lives ` ) ( ( powerful tools ) ( ( ( ( ( ( in ( ( ( predicting and ) explaining ) ( human behavior ) ) ) and ) , ) therefore ) , ) ( in ( ( getting along ) ( with others ) ) ) ) ) ) ) ) . ) ) )
(ROOT (S (PP (IN As) (NP (NP (DT a) (NN byproduct)) (PP (IN of) (NP (NN participation))))) (, ,) (S (NP (NNS children)) (VP (VBP gain) (NP (NP (DT a) (JJ rich) (NN understanding)) (PP (IN of) (NP (PRP$ their) (JJ own)))))) (CC and) (S (NP (NP (NNS others) (POS ')) (JJ mental)) (VP (VBZ lives) (`` `) (ADJP (JJ powerful) (RB tools) (PP (PP (IN in) (S (VP (VBG predicting) (CC and) (VBG explaining) (NP (JJ human) (NN behavior))))) (CC and) (, ,) (ADVP (RB therefore)) (, ,) (PP (IN in) (S (VP (VBG getting) (PRT (RP along)) (PP (IN with) (NP (NNS others)))))))))) (. .)))
Children have a better understanding of other people's behavior and getting along with others when they participate. 
( ( ( ( Children ( have ( ( a ( better understanding ) ) ( of ( ( other ( people 's ) ) behavior ) ) ) ) ) and ) ( ( getting along ) ( with ( others ( when ( they participate ) ) ) ) ) ) . )
(ROOT (S (S (NP (NNP Children)) (VP (VBP have) (NP (NP (DT a) (JJR better) (NN understanding)) (PP (IN of) (NP (NP (JJ other) (NNS people) (POS 's)) (NN behavior)))))) (CC and) (S (VP (VBG getting) (PRT (RP along)) (PP (IN with) (NP (NP (NNS others)) (SBAR (WHADVP (WRB when)) (S (NP (PRP they)) (VP (VBP participate)))))))) (. .)))