Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:D
['BFAF EAFD EFDB,', 'A2 GB ABdf'  
X:1
L:1/8
M:4/4
K:D
|: B2 AF BFAF | EAFD EFDB, | A,D D2 A,DFA | BABc dfed | BF F2 BFAF | EAFD EFDB, | A,DFD B,DGB |1 
 Agfe d3 c :|2 Agfe d3 e || f2 ed fded | BedB AGFB | A2 GB ABdf | edef e2 de | fd d2 fded | 
 BedB ADFB | A2 GB ABdf | e3 f d3 e | f2 ed fded | BedB AGFB | A2 GB ABdf | e3 f gfed | f3 e d3 A | 
 BAdB AFDB, | A,D D2 B,DGB | Agfe d3 c ||  