Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:C
['D (ED)(EG) (AG)(cA) AGcA AG ED (ED)(EG)', 'eded c2'  
X:1
L:1/8
M:4/4
K:C
 D | (ED)(EG) (AG)(cA) | AGcA AG ED | (ED)(EG) AGcG | GEcE D2 D :| eded c2 c2 | AGAc d2 d2 | 
 eded c2 cA | GEcE D2 D2 | eded c2 c2 | AGAc d2 d2 | gedc ABcA | BEcE D2 D ||  