Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/2
K:Dmin
['D>AB>^c (d>B)A>^c (d>e)f>g a2 g>a (b>a)g>b (a>g)f>a', '(c>B)A>c B2'  
X:1
L:1/8
M:2/2
K:Dmin
 uD2S | D>AB>^c (d>B)A>^c | (d>e)f>g a2 g>a | (b>a)g>b (a>g)f>a | gfed cBAD | D>AB>^c (d>B)A>^c | 
 (d>e)f>g a2 g>a | (b>a)g>b (a>g)f>a | (f>d)e>^c d2 :: vc>ud | (_e>d)c>e (d>c)B>d | 
 (c>B)A>c B2 c>B | AfBf cfdf | (e>g)b>g f2 c>d | (_e>d)c>e d2 A>B | (c>B)A>c B2 A>G | 
 (F>A)B>c (d>c)B>A |1 (B>A)B>^c d2 :|2 (d>^c)d>_e (d>=c)B>A"_D.C."S |]  