Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/4
M:4/4
K:D
['B A']  
X:1
L:1/4
M:4/4
K:D
 A | d d c c/ c/ | B B A A | G B A G | F3 A | d d c c | B B A A/ A/ | G B A G | F3 E | 
 D/ D/ E F G | A B c A/ A/ | d d/ d/ e f | d3 d | f d e3/2 d/ | d d A F/ F/ | G B A c | d3 ||  