Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['(3ABc dAFA BAFE DFAd BAFD |1 CDEF', 'dcBA BABc BAFD |1 CDEF GABA GFED'  
X:1
L:1/8
M:4/4
K:D
|: (3ABc | dAFA BAFE | DFAd BAFD |1 CDEF GABA | GFED E2 :|2 CDEF GABc | d2 ce d2 |: (3ABc | 
 dcde dcBA | BABc BAFD |1 CDEF GABA | GFED E2 :|2 CDEF GABc | d2 ce d2 |]  