Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:D
['D2 DE{F} EDFE DFAc', '^ga fdAd afdB'  
X:1
L:1/8
M:4/4
K:D
 D2 DE{F} EDFE | DFAc d2 dA | BF{G}FE FABc | d2 (B/c/d) AFGE | D2 DE{F} EDFE | DFAc dAFA | 
 BF F/F/F dF F/F/F | AFEG FDD z :: a2 ^ga fdAd | afdB ABdf | e2 ce Acec | ac^gc =gece | 
 (3(aba) ^ga fdAd | afdB ABde | fBBA BcdB | AFEG FDD z :|  