Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:G
['f2 dg g2', 'g2 dc (BG)GB (Ac)=fc'  
X:1
L:1/8
M:2/2
K:G
 de f2 dg g2 | (de)fg (fd)cA | df f2 dg g2 | fdcA A(G G2) | de f2 dg g2 | (de)fg (fd)cA | 
 (de)fg (3agf ge | fdcA A(G G2) || g2 dc (BG)GB | (Ac)=fc (AB)cA | g2 dc (BG)GB | (Ac)=fc A(G G2) | 
 g2 dc (BG)GB | (Ac)=fc (AB)cA | (3dcB cA (BG)(Ag) | (fd)cA AG G2 ||  