Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:D
['D>CDE FGAF', 'd2 dA', 'D2 (3ABc dAFA BAFA DAFA BAFA dAFA'  
X:1
L:1/8
M:4/4
K:D
 A2 | D>CDE FGAF | GFGB A2 AF | D>CDE FGAF | G2 E2 E2 AF | D>CDE FGAF | GFGB A2 (3ABc | dcdB ABAG | 
 F2 D2 D2 || (3ABc | d2 dA BAFA | DAFA BAFA | d2 dA BAGF | G2 E2 E2 (3ABc | d2 dA BAFA | 
 DAFA BAFA | GABG EFGE | F2 D2 D2 || (3ABc | dAFA BAFA | DAFA BAFA | dAFA BAGF | G2 E2 E2 G2 | 
 FDFA GEGB | AFAc d2 cB | AdcB AGFE | F2 D2 D2 ||  