Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:2/2
K:Edor
['dc |]: BE', 'BE E2 dBAF D2', 'dBAF E2'  
X:1
L:1/8
M:2/2
K:Edor
 dc |]: BE E2 BEdE | BE E2 dBAF | D2 FD ADFE | DEFA BAFA | BE E2"^var." Bdcd | BE E2 dBAF | 
 D2 FA dfec |1 dBAF E2 dc :|2 dBAF E2 FA |: Beed efed | (3Bcd ef gfed | Bddc dedB | AF F2 DEFA | 
 Beed efed | (3Bcd ef gefg | afge fgec |1 dBAF E2 FA :|2 dBAF E2 dc |]  