Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['B3 A GE E2 EBEB dBAd (3B^cd', '(3B^cd ef'  
X:1
L:1/8
M:4/4
K:G
 B3 A GE E2 | EBEB dBAd | (3B^cd BA GABe | dBAd BE E2 :: (3B^cd ef gefA | (3B^cd ge dBAd | 
 (3B^cd ef g3 a | bage dBAd :|  