Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:3/4
K:G
['', 'G2 E4', 'E>E c z c2 D>D B z'  
X:1
L:1/8
M:3/4
K:G
 D2 || B>A G2 =F2 | E4 E2 | c>B A2 G2 | E4 D2 | d>d B2 G2 | E4 (3ABA | G>F E2 F2 | G4 D2 :| 
 D>E F2 D>E | F>G A2 (3DEF | G>A B2 G2 | d4 c2 | E>E c z c2 | D>D B z B2 | D>D A z A2 | G4 D2 | 
 D>D E>E F>F | G>G A>A B>B | c>c B>B A>A | d4 C2 | E>E c z c2 | D>D B z B2 | D>D A z A2 | G6 ||  