Design melodies following the assigned musical pattern while integrating the provided thematic element.
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
['FG ABAF D2 de', 'de fefg'  
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
 FG | ABAF D2 de | fgfe d2 Bc | dedB ABAF | B2 E2 E2 FG | ABAF D2 de | fgef d2 Bc | dedB ABAG | 
 F2 D2 D2 || de | fefg afdf | fefg afdf | g2 ag f2 af | g2 e2 e2 de | fefg afef | fgef d2 Bc | 
 dedB ABAG | F2 D2 D2 |]  