Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
['AB cd']  
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
|: ed | c2 AB cd ec | d2 gd BG GB | cB AB cd ec | df ec Ac ed | cB AB cd ec | d2 gd BG GB | 
 cB AB cd ec | df ec A2 AB | cd ef g2 eg | fd df gf ed | cd ef gf eg | fd ec A2 AB | cd ef gf eg | 
 fd df e2 fg | af ge fd ec | df ec A2 :|  