Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['A d', 'G F G A3'  
X:1
L:1/8
M:6/8
K:D
 B | A F G (EF) E | D F A B2 d | d =c B A3/2 G/ A | E F G A2 F | A d e d A B | =c d c B2 A | 
 d =c B A d d | D D D G || F G | A3 D2 ||  