Create musical composition by adhering to the given musical structure represented by letters and integrating the given motif.
X:1
L:1/8
M:2/2
K:G
['B d2 (gd) BGdB Aaag fdef gfgd', 'EGDG ABcB cedc']  
X:1
L:1/8
M:2/2
K:G
 B | d2 (gd) BGdB | Aaag fdef | gfgd ecdB | cAdc BGG :| c | BGDG EGDG | ABcB cedc | BGDG EGce | 
 dBcA BGGc | (B/A/G) (DG) EGDG | ABcB cedc | BdgB ceag | fdef gG G ||  