Create melodies that adhere to the provided musical framework and incorporate the given theme
X:1
L:1/8
M:4/4
K:G
['DGdG cGBG DGcG BGAG DGAG BGAG', 'E2 e3 d BA G2'  
X:1
L:1/8
M:4/4
K:G
 DGdG cGBG | DGcG BGAG | DGAG BGAG | DEGD EDB,C | DGdG cGBG | DGcG BGAG | DGAG BGAG |1 DEFD G4 :|2 
 DEFD GABc |: d3 B AGAB | c3 B AG E2 | e3 d BA G2 | ABdA BAGB | d3 B AGAB | cGBG AG E2 | 
 e3 d BA G2 |1 ABAF GABc :|2 ABAF G4 |]  