Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/2=90
M:4/4
K:C
['d2 g2', 'c2 cd e2 dc'  
X:1
L:1/8
Q:1/2=90
M:4/4
K:C
 C |[K:Gmix]"^J.A.""_no key sig - see notes" Bc | d2 g2 d2 g2 | edeg e2 g2 | d2 g2 dedB | 
 ABAG G2 :| AB | c2 cd e2 dc | BABc d2 cB | AGAB cBcd | edeg e2 A2 | c2 cd e2 dc | d2 de f2 ef | 
 g3 e gedB | ABAG G2 |]  