Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:4/4
K:D
['F2 AF GFED', 'gB B2'  
X:1
L:1/8
M:4/4
K:D
 AG | F2 AF GFED | F2 AF GFED | E3 F GFED | EDEF GFED | F2 AF GFED | F2 AF GFED | Bdef gfec | 
 dfec d2 :| ef | gB B2 gBaB | gB B2 gfed | cAeA fAed | cdef gfef | gB B2 gBaB | gB B2 gfed | 
 cdef gfec | dfec d2 :|  