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:D
['D2 FB A2', 'fedf e2 ce'  
X:1
L:1/8
M:4/4
K:D
|: D2 FB A2 FA | dAFA GE E2 | D2 FB A2 FB | AGEF D2 FE | D2 FB A2 FA | dAFA GE E2 | DFEG (3FGA Bd | 
 cAGE D3 z :: fedf e2 ce | dcBd cA A2 | fedf e2 ce | dcBc A2 de | fedf e2 ce | dcBd cAFE | 
 DFEG (3FGA Bd | cAGE D3 z :|  