Create musical pieces that follow the designated structure and incorporate the provided musical motif.
X:1
L:1/8
M:4/4
K:G
['D2 G2 GA B2 AG A2 AB']  
X:1
L:1/8
M:4/4
K:G
 D2 | G2 GA B2 AG | A2 AB c2 BA | G2 GB d2 B2 | G2 AF D2 D2 | G2 GA B2 AG | A2 AB c2 BA | 
 BdBG AcAF | G2 G2 G4 |]  