Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:4/4
K:G
['A2 GB']  
X:1
L:1/8
M:4/4
K:G
 DEGB A2 GB | A2 GB ABGE | DEGB ABGA |1 BGdB ABGE :|2 dBAc BGGB ||  