Compose melodies using the provided motif and adhering to the designated musical form.
X:1
L:1/8
M:3/4
K:D
['d>e f2 A2', 'e>f g2 a>g'  
X:1
L:1/8
M:3/4
K:D
|: d>B | A2 A2 d>e | f2 A2 f>g | a2 f2 ed | f2 e2 e>f | g2 a>g fe | d2 B2 d>e | f2 A2 BA | d4 :: 
 e>f | g2 a>g fd | f2 e2 f>e | d2 fa gf | f2 e2 e>f | g2 a>g fe | d2 B2 d>e | f2 A2 BA | d4 :|  