Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['dcde fAGA', 'g3 f'  
X:1
L:1/8
M:4/4
K:D
|: dcde fAGA | dcde fAGA | g3 f efed | cAdA egfe | dcde fAGA | dAeA fAGA | g3 f efed | cdec d3 A :: 
 g3 f eAce | dfaf dcBA | B3 A gfed | cAdA egfe | dcde fAGA | dAeA fAGA | g3 f efed | cdec d3 A :|  