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 cd', 'defg a^gaf dfaf ecAc'  
X:1
L:1/8
M:4/4
K:D
 c | d2 cd BF F2 | d2 cd egfe | dBcA BFFA | [BB,]EEF GAB :| e | defg a^gaf | dfaf ecAc | 
 defg a2 ^ga | bgaf ecAc | defg a^gaf | dfaf ecAc | dcBA Bcde | fgaf egfe |"^final" d8 ||  