Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
M:2/2
K:A
['A/A/A A2 A>B', 'c/B/A e>A f>Ae>A G<BB>G'  
X:1
L:1/8
M:2/2
K:A
 E | A/A/A A2 A>B c<e | B/B/B B2 d>e f<a | A/A/A A2 A>B c<d | ef/g/ a>c B2 A :| e | 
 c/B/A e>A f>Ae>A | G<BB>G G<BB>e | d/c/B/A/ e>A f>Ae>c | ef/g/ a<c B2 A>e | c/B/A e>A f>Ae>A | 
 G<BB>G G<BB>c | A<cB<d c<ed<f | ef/g/ a>c B2 A |]  