Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
Q:1/4=80
M:4/4
K:D
['[Dd]2 d2', '[DAd]4 AB =c2 Bc [Dd]2 [DA]2 fe'  
X:1
L:1/8
Q:1/4=80
M:4/4
K:D
 [Dd]2 d2 ef ab | af ed B2 A2 | [Dd]2 d2 efab | afed [DAd]4 :| AB =c2 Bc [Dd]2 | [DA]2 fe d/B/ A3 | 
 [DA]2 Bd b2 af | [A,e]3 d/e/ d4 |]  