Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
Q:1/2=90
M:4/4
K:G
['B d2 d>e d>Bg>B dBgB aAAB d^cde', 'DGdG AGBG'  
X:1
L:1/8
Q:1/2=90
M:4/4
K:G
 B | d2 d>e d>Bg>B | dBgB aAAB | d^cde dBgB | AB/c/ BA BG"^cr"G :| B | DGdG AGBG | DGdG AGAB | 
 DGdG AGBG | d>edc BGGg | dgbg agbg | dgbg agea | ba.g.f gf.e.d | efga bgg |]  