Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
['ed (B/c/d)', 'F A2 d (B/c/d) AF', 'ADDA F A2 d (B/c/d) AF GBAF'  
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
 A | F2 A a | f(g/a/) ed | (B/c/d) AF | BEEG | F A2 a | f/g/a"^tr" ed | (B/c/d) AF | ADD :| A | 
 F A2 d | (B/c/d) AF | GBAF | BEEG | F A2 d | (B/c/d) AF | GBAF | ADDA || F A2 d | (B/c/d) AF | 
 GBAF | BEEg | afge | fdec | dB AF | ADD |]  