Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:D
['(3ABc d2 c2 B2 AF DFAd f2', 'cd efed c2 B2 AEAc e2 dc'  
X:1
L:1/8
M:4/4
K:D
 (3ABc | d2 c2 B2 AF | DFAd f2 ed | cdef gece | defd A2 (3ABc | d2 c2 B2 AF | DFAd f2 ed | 
 cdef gece | dfec d2 :: cd | efed c2 B2 | AEAc e2 dc | BGBd gfed | cAce a2 cd | efed c2 B2 | 
 AEAc e2 dc | BGBd gfed | cdBc A2 :|  