Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:12/8
K:Edor
['B2 A B2', 'd2 B'  
X:1
L:1/8
M:12/8
K:Edor
 D | E2 B B2 A B2 c d3 | F2 A ABA D2 E FED | E2 B B2 A B2 c d3 | cdc B2 A B2 E E2 :: B | 
 e2 f gfe d2 B Bcd | c2 A ABc d2 B B3 | e2 f gfe d2 B Bcd | cdc B2 A B2 E E2 :|  