Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:D
['(3AAA AB AGEC DEDC', 'ed cdec'  
X:1
L:1/8
M:4/4
K:D
 A2 | FDFA G2 F2 | (3EEE ED EFGE | (3AAA AB AGEC | DEDC A,4 | (3CCC CD E2 cB | (3AAA AB AGEC | 
 DEDC A,2 A,2 |[M:2/4] A,2 ::[M:4/4] AB | cBAB c2 d2 | (3eee ed cdec | (3ddd dc dfec | dedc A2 AB | 
 cBAB c2 d2 | (3eee ed cdec | dedc A2 A2 |[M:2/4] AB cd |[M:4/4] e2 ed cdec | d2 (3Bcd c2 B2 | 
 AGED EFGA | BA (3Bcd e4 | (3EEE ED CA,CE | (3AAA AB AGEC | DEDC A,2 A,2 |[M:2/4] A,2 :|  