Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
M:2/4
K:G
['GDB,D GDB,D', 'd2d2 d2BG'  
X:1
L:1/16
M:2/4
K:G
|: GDB,D GDB,D | AGAB A2A2 | GDB,D GDB,D | AGAB G4 :: d2d2 d2BG | edef g2g2 | d2d2 d2BG | 
 AGAB G4 :|  