Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:6/8
K:G
['A d>cB d>cB e2 e d2 z', 'B3 d3 cAd']  
X:1
L:1/8
M:6/8
K:G
 A | d>cB d>cB | e2 e d2 z | efg dcB | cAd G2 :: A | B3 d3 | cAd B2 G | B3 d3 | cAd G2 :|  