Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:6/8
K:D
['AFD DFD DFD (TB2 A) Bcd AFA', '(TB2 A) Bcd'  
X:1
L:1/8
M:6/8
K:D
 B | AFD DFD | DFD (TB2 A) | Bcd AFA | BEE E2 (d/B/) | AFD DFD | DFD (TB2 A) | Bcd AFA | FDD D2 :| 
 g | fef d2 e | fga (TB2 A) | Bcd AFA | BEE E2 g | fef d2 e | fga (TB2 A) | Bcd AFA | FDD D2 g | 
 fef d2 e | fga (TB2 A) | Bcd AFA | BEE E2 g | fga efg | fea (TB2 A) | Bcd (TF2 E) | FDD D2 ||  