Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:4/4
K:D
['d2 cd (3Bcd AG FAde fdaf eAce', 'E3 F GABd'  
X:1
L:1/8
M:4/4
K:D
 A | d2 cd (3Bcd AG | FAde fdaf | eAce gfed | ceBe cABc | d2 cd (3Bcd AG | FAde fdaf | eAce gfed | 
 cAGE D3 :| F | E3 F GABd | cA A/A/A cAge | E3 F GABd | cAec d2 f2 | E3 F GABd | cA A/A/A cAge | 
 fafd cAGE | D2 FE D3 :|  