Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/16
Q:1/4=120
M:2/2
K:D
['D4 (DEFG) A4 (ABcA) d2f2{g} f4 edcB']  
X:1
L:1/16
Q:1/4=120
M:2/2
K:D
 D4 (DEFG) A4 (ABcA) | d2f2{g} f4 edcB AGFE | D4 D(FED) A4 (AcBA) | d2f2e2d2 c2B2 A4 |:  