Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['d2 dd d2 cB ABGA F2 A2', 'f e'  
X:1
L:1/8
M:4/4
K:D
 d2 dd d2 cB | ABGA F2 A2 | E2 A2 D2 A2 | Bcde dcBA | d2 a2 fgaf | efge fgaf | gabg fdfa | 
 gfed dcBA | (3Bcd Bd gBgB | AdAd fAfA | GBGB efed | c2 Bc A3 G | FGAF EFGE | FGAF GABG | 
 A2 d2 fedc | d4 d3 || A | d2 b2 agfe | d2 a2 c2 g2 | B2 e2 ABcd | ecBA d3 f | edcB caaa | 
 Bggg Afff | edcB caaa | Bggg bgbg | afaf edcB | cABG AFGE | DAFA DAFA | (3GFE BE (3GFE BA | 
 FAdc BAGF | EFGA BcdB | A2 d2 fedc | d4 ||2 
[M:6/8]O TDCO Tfe ca a ube f e g ee!p!!p!e ad!p! a e uC aa abc a!p! .Te uf!p! ce e fe e!p! ga ab c2 exc cve a Muc Te x6 fE ad e ua feug Muc Te x6S .ee e ab c2 e x dcuea f a ex!p!aaf e a .B ab c2 e x ad Muc Te x6 ae avaabe f auf!p! e acve cec.afd.ed!>!.ue a f uC ee ue cage e .Tee a beue dffee ve f e f e fag aud .ave ed gve eg c ae ce a ea!p! aed .A fe ueae acbed f!p! acua!p! eface e e aeae f bb f ee ae dcaed e ue eb uea ae e ab ua ave ead e!p! aed.ue a ef e!p! ae .Te eg ae bac ||  