Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:4/4
K:D
['AdAF GFEF D2 FA BAFA Beef gfed', 'afge fage d2 AF DFAd Beef gfed'  
X:1
L:1/8
M:4/4
K:D
 FG | AdAF GFEF | D2 FA BAFA | Beef gfed | cedB AGFG | AdAF GFEF | D2 FA BAFA | Beef gfed | 
 cABc d2 :| fg | afge fage | d2 AF DFAd | Beef gfed | cba^g a2 f=g | afge fage | d2 AF DFAd | 
 Beef gfed | cABc d2 :|  