Develop tuneful melodies adhering to the specified letter notation and including the supplied thematic aspect.
X:1
L:1/8
M:2/2
K:D
['(3Bcd AF', 'dcdf adfa', 'eAce dcdA Bcde |1 fddf eAce dBAG', 'fAdf eAce', '(3Bcd AF E3']  
X:1
L:1/8
M:2/2
K:D
 D3 B AF F2 | AFBF AFEF | D2 DB ADFA |1 (3Bcd AF EDCE :|2 (3Bcd AF Ea^ga |: fddf eAce | 
 dcdA Bcde |1 fddf eAce | dBAG FD D2 :|2 (3fga ec dcBA | (3Bcd AF Egfe |: dcdf adfa | gbaf gfef | 
 dcdf adfa |1 gbaf egfe :|2 gbaf ea^ga |: fddf eAce | dcdA Bcde |1 fddf eAce | dBAG FD D2 :|2 
 (3fga ec dcBA | (3Bcd AF EDCE |:"^variations" D3 B A2 FB | AFBF AFEF | D2 DB ADFA |1 
 B2 AF E2 EF :|2 (3BcB AF E3 g |: fAdf eAce | dcdA Bcde |1 fAdf eAce | dBAF E3 g :|2 
 (3fgf ec dBAd | BdAF EABc |: d3 f adfa | gbaf gfef | dcdf adfa |1 gbaf e3 f :|2 gbaf e3 g |: 
 fdAf eAce | dcdA Bcde |1 fddf eAce | (3Bcd AF E3 g :|2 (3fga ec dcBA | (3Bcd AF E3 G ||  