Develop tuneful melodies adhering to the specified letter notation and including the supplied thematic aspect.
X:1
L:1/8
M:4/4
K:Dmin
['DEFG AD D2', 'd3 e', 'DEFG AD D2 BAGB', 'dcDc BAGB']  
X:1
L:1/8
M:4/4
K:Dmin
 DEFG ADDA | BAGB ADDC | DEFG AD D2 | EDCD EGGA | DEFG AD D2 | BAGB ADED | C3 D CEGA | GECE D4 :: 
 d3 e dA A2 | BAGB AD D2 | d3 e dA A2 | BAGB A4 | d3 e f3 e | dcAG ADED | C3 D CEGA | GECE D4 :| 
 DEFG AD D2 | BAGB AGFE | DEFG ADFD | GECE GCEG | DEFG AD D2 | BAGB AGED | C2 C2 EC C2 | 
 GECG DEFE :: DdD dcDc | BAGB AD D2 | d3 D dcDc | BAGB A3 A | dAde fAfA | cAGc ADDG | C2 C2 EC C2 | 
 GECG DEFE :|  