Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:6/8
K:G
['G2 B', 'gfe d3 gdB'  
X:1
L:1/8
M:6/8
K:G
|: G2 B BAB | G2 B BAG | FAA [AA]2 D | FAA [AA]2 D | G2 B BAB | G2 B BAB | def gdB |1 AGG G3 :|2 
 AGG G2 g |: aba agf | gag gfe | d3 gdB | BAA A2 a | aba agf | gag gfe | d3 gdB |1 AGG G2 a :|2 
 AGG G3 ||  