Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['d>D AG/F/ E=C Cf/e/ dD B/A/G/F/ d2', 'af dg/f/ e=c cf/g/'  
X:1
L:1/8
M:4/4
K:D
 f/e/ | d>D AG/F/ E=C Cf/e/ | dD B/A/G/F/ d2 df/e/ | dD AG/F/ E=CC>E | D>Fd>F A2 Af/e/ | 
 d>D AG/F/ E=C Cf/e/ | dD B/A/G/F/ d2 df/e/ | dD AG/F/ E=CC>E | D>Fd>F A2 A || f/g/ | 
 af dg/f/ e=c cf/g/ | afdg fd f/g/a/f/ | af dg/f/ e=c cf/g/ | a>fd>A d2 df/g/ | 
 af dg/f/ e=c cf/g/ | afdA Fd AG/F/ | GB/G/ Fd/F E=CCE | D>Fd>F A2 A |]  