Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/4
M:4/4
K:Dmin
['d d', 'F D D E'  
X:1
L:1/4
M:4/4
K:Dmin
 c | A d d c | (e d) d A | c d A F | G3 (F/G/) | A d d c/ c/ | e d d A | c A G E | c3 || (B/G/) | 
 F D D E | G A B G | F D D E | G2 z z | A d d c | e d d B | c A G E | D3 |]  