Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:4/4
K:D
['gB B2', 'F2 AF GFED'  
X:1
L:1/8
M:4/4
K:D
 ef | gB B2 gBaB | gB B2 gfed | cAeA fAeA | cAef gfef | gB B2 gBaB | gB B2 gfed | cdef gfec | 
 dfec d2 :| DE | F2 AF GFED | F2 AF GFED | E2 EF GFED | E2 EF GFED | F2 AF GFED | F2 AF GFED | 
 cdef gfec | dfec d2 :|  