Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/4
M:3/4
K:D
['(3A/B/c/ d d3/2 d/ d e g', "f/g/ a d' f a a/g/ e"  
X:1
L:1/4
M:3/4
K:D
 (3A/B/c/ |:"D" d d3/2 d/ |"A7" d e g |"D" f z"A7" e |"D" d z (3A/B/c/ | d d3/2 d/ |"A7" d e g | 
"D" f z"A7" e |"D" d z f/g/ ||"D" a d' f |"A7" a a/g/ e | b a g |"D" a/b/ a/g/ f/g/ | a d' f | 
"A7" a a/g/ e | a g e |1"D" d z (3A/B/c/ :|2"D" d z |]  