Compose melodies using the provided motif and adhering to the designated musical form.
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
['sig G in d2 dd d2 A2', 'd4 a2 aa a2 a2 b2 ag'  
X:1
L:1/8
Q:1/2=90
M:4/4
K:D
"_key sig G in MS" d2 dd d2 A2 | d2 fe d4 | f2 ff f2 d2 | abag f3 g | abag fgaf | gagf efge | 
 fgfe dbag | e3 d d4 :: a2 aa a2 a2 | b2 ag a4 | f2 ff f2 d2 | edcB A2 g2 | abag fgaf | gagf efge | 
 fgfe dbag | e3 d d4 :|  