Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:6/8
K:G
['B2 B', 'd e2'  
X:1
L:1/8
M:6/8
K:G
|: d e2 d | B2 B BAG | B2 d e2 d | B2 B BAG | A2 A AGA | B2 B BAG | B2 d e2 d | B2 B ABA | G2 :: 
 d e2 f | g2 d e2 d | g2 d e2 d | B2 B BAG | A2 A ABd | g2 d e2 d | g2 d e2 d | B2 B ABA | G2 :|  