Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/16
M:2/4
K:D
['d2(fd) gefd', 'afdf afdf'  
X:1
L:1/16
M:2/4
K:D
 (3(ABc) | d2(fd) gefd | e=cAB c2(3(AB^c) | d2(fd) gefd | egfe d2 :: (fg) | afdf afdf | 
 e=cAB c2(fg) |1 afdf afdf | egfe d2 :|2 a(fg)(e f)(de)(c | A)gfe d2!D.C.! |]  