Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:G
['z B,DDE', 'AGAB AGED'  
X:1
L:1/8
M:2/2
K:G
 z |:"G" B,DDE D2 DE | GEDG EDEG |"C" AGAB AGED |1,3"D7" EDEG EDB,A, :|2,4"D7" EDEF"G" G2 z :: A | 
"G" B2 d2 BAGA | BABd BAGB |1,3"C" edBe dBed |"D" BedB edB :|2,4"C" AGAB AGED |"D7" EDEF"G" G2 z :|  