Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/8=300
M:2/4
K:G
['GD GA Be e2 dB', 'gf ed Be e2 dB'  
X:1
L:1/8
Q:1/8=300
M:2/4
K:G
 GD GA | Be e2 | dB GA | BA AB/A/ | GD GA | Be e2 | dB AB/A/ | G2 G2 :| gf ed | Be e2 | dB GA | 
 BA A2 | gf ed | Be e2 | dB AB/A/ | G2 G2 :|  