Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/16
Q:1/8=100
M:2/4
K:D
['', 'd2c2 B2A2', 'agfe dcBA G2b2 F2a2 E2g2'  
X:1
L:1/16
Q:1/8=100
M:2/4
K:D
 z4 |: A2 | d2c2 B2A2 | g4 f4 | efga b2d2 | dcBc A2Bc | d2c2 B2A2 | G2b2 F2a2 | E2g2 fedc | 
 d4 d2 :| a2 | agfe dcBA | G2b2 F2a2 | E2g2 f2d2 | edcB A2a2 | agfe dcBA | G2b2 F2a2 | E2g2 fedc |1 
 d4 d2 :|2 d8- | d8 |]  