( ( ( ( ( ( Gas matter ) ( ( changes ( its shape ) ) ( according ( to ( its container ) ) ) ) ) , ) but ) ( ( its volume ) ( changes ( according ( to ( ( its container ) ( as well ) ) ) ) ) ) ) . )
(ROOT (S (S (NP (NNP Gas) (NN matter)) (VP (VBZ changes) (NP (PRP$ its) (NN shape)) (PP (VBG according) (PP (TO to) (NP (PRP$ its) (NN container)))))) (, ,) (CC but) (S (NP (PRP$ its) (NN volume)) (VP (VBZ changes) (PP (VBG according) (PP (TO to) (NP (NP (PRP$ its) (NN container)) (ADVP (RB as) (RB well))))))) (. .)))
Gas matter changes its shape according to its container, but its volume changes according to its container as well.
(ROOT (S (NP (DT A) (NN gas)) (VP (VBZ assumes) (NP (NP (DT the) (NN shape)) (PP (IN of) (NP (PRP$ its) (NN container))))) (. .)))