Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:Edor
['BE (3EEE (BE)dE dE (3EEE (BA)FA', 'Be (3eee (dc)dB'  
X:1
L:1/8
M:4/4
K:Edor
 (d/c/)S | BE (3EEE (BE)dE | dE (3EEE (BA)FA | AD (3DDD (AD)dD | AD (3DDD (BA)FA | 
 BE (3EEE (BE)dE | dE (3EEE (BA)FA | BABc defc | dBAF (3EEE E z |: Be (3eee (dc)dB | 
 ce (3eee (BA)FA | Be (3eee (dc)dB | AFDF (3EEE E2 | Be (3eee (dc)dB | ce (3eee (BA)FA |1 
 BABc dfec | dBAF (3EEE E2 :|2 Bdce dfeg | fdec dBA"_D.S."d |]  