( ( ( ( ( ( ( The ( next phase ) ) ( of matter ) ) ( is ( ( the gas ) ( which ( has ( no ( definite shape ) ) ) ) ) ) ) , ) thus ) ( shape ( is ( determined ( by ( the ( container occupied ) ) ) ) ) ) ) . )
(ROOT (S (S (NP (NP (DT The) (JJ next) (NN phase)) (PP (IN of) (NP (NN matter)))) (VP (VBZ is) (NP (NP (DT the) (NN gas)) (SBAR (WHNP (WDT which)) (S (VP (VBZ has) (NP (DT no) (JJ definite) (NN shape)))))))) (, ,) (RB thus) (S (NP (NN shape)) (VP (VBZ is) (VP (VBN determined) (PP (IN by) (NP (DT the) (NN container) (JJ occupied)))))) (. .)))
The next phase of matter is the gas which has no definite shape, thus shape is determined by the container occupied.
(ROOT (S (NP (DT A) (NN gas)) (VP (VBZ assumes) (NP (NP (DT the) (NN shape)) (PP (IN of) (NP (PRP$ its) (NN container))))) (. .)))