Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:5/8
K:G
['D/G/ GB', 'd BG'  
X:1
L:1/8
M:5/8
K:G
 D/G/ |:"D" FA"G" GB B |"D7" Ac"G" BG D/G/ |"D" FA"G" GB d |1"D7" cA"G" G2 D/G/ :|2 
"D7" cA"G" G2 d ||"D7" cA"G" BG d |"D7" cA"G" BG D/G/ |"D" FA"G" BG d |"Am7" cA"D" d2 d | 
"D7" cA"G" BG d |"D7" cA"G" BG D/G/ |"D" FA"G" GB d |"D7" cA"G" G2 ||  