Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:4/4
K:G
['AF F2 DEFD E2', 'BEEf gfef gfea fd(3.d.d.d bdad gfef gfe^d'  
X:1
L:1/8
M:4/4
K:G
 E2 GE BEGB | AF F2 DEFD | E2 (3.G.G.E BEGB | cB(3cBA BEED | EFGA BA^GB | AF F2 DEFD | 
 E2 (3.G.F.E BEGA | BdcA BE{G}ED | E BE E2 | D2 FD | E2 GE BEGA | BdcA BE{G}ED | EFGA BAGB | 
 AF F2 DEFD | E2 GE BEGA | (3Bcd cA BEEf |: gfef gfea | fd(3.d.d.d bdad | gfef gfe^d | efga bgef | 
 g2 g2- gbag | fd d2 Adfd | efge (3agf ge | dBcA BE E2 :|  