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 DE DFAd f2 fe dBBd FAAB', 'ceec d2'  
X:1
L:1/8
M:4/4
K:D
|: D2 DE DFAd | f2 fe dBBd | FAAB AFAd | ceef ecAF | D2 DE DFAd | f2 fe dBBd | FAAB AFAd |1 
 ceec d2 d2 :|2 ceec d2 fg |: faag f2 ed | BddB AFEF | DFAd fafd | ceef e2 fg | (3fga ag f2 ed | 
 (3Bcd dB AFEF | DFAD FAAd |1 ceec d2 fg :|2 ceec d2 d2 ||  