'  The barn was the building for storing barley.
( ' ( ( The barn ) ( ( was ( ( the building ) ( for ( storing barley ) ) ) ) . ) ) )
(ROOT (S ('' ') (NP (DT The) (NN barn)) (VP (VBD was) (NP (NP (DT the) (NN building)) (PP (IN for) (S (VP (VBG storing) (NP (NN barley))))))) (. .)))
The barn is used to store crops such as barley.
( ( The barn ) ( ( is ( used ( to ( store ( crops ( such ( as barley ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN barn)) (VP (VBZ is) (VP (VBN used) (S (VP (TO to) (VP (VB store) (NP (NP (NNS crops)) (PP (JJ such) (IN as) (NP (NN barley))))))))) (. .)))