Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/16
Q:1/4=80
M:6/8
K:G
['A4 d4']  
X:1
L:1/16
Q:1/4=80
M:6/8
K:G
 G2ABG2 A2B2c2 | d4 d2 cBA2B2 | c2B2 A4 G2AB | G2A2B2 c2 d4 | d2cBA2 B2c2B2 | A4 d4 A2B2 | 
 c2d2B2 A2G2AB | G2G2G2 FG A4 | d4 A2 B2c2d2 | e2d2c2 dc B4 | A4 G4 d2ed2 | cABcBA Gd2ed2 | 
 cABA2<G2d2ed2 | cABcBA Gd2ed2 | cABA2<G2GABAB | AGFG2<A2ABcdc | BAdcB2 AGABAB | AGFG2<A2ABcdc | 
 BABA2<G2 |]  