( ( A gas ) ( ( has ( ( ( both ( the shape ) ) and ) ( ( the volume ) ( of ( its container ) ) ) ) ) . ) )
(ROOT (S (NP (DT A) (NN gas)) (VP (VBZ has) (NP (NP (PDT both) (DT the) (NN shape)) (CC and) (NP (NP (DT the) (NN volume)) (PP (IN of) (NP (PRP$ its) (NN container)))))) (. .)))
A gas has both the shape and the volume of its container.
(ROOT (S (NP (DT A) (NN gas)) (VP (VBZ assumes) (NP (NP (DT the) (NN shape)) (PP (IN of) (NP (PRP$ its) (NN container))))) (. .)))