Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['', 'DA,DE FDFA BGBd cABc', 'd2 (3gag (3fgf edcd (3efe (3dcB (3ABA'  
X:1
L:1/8
M:4/4
K:D
 FE |: DA,DE FDFA | BGBd cABc | dcde fdgf | edcB (3ABA (3GFE | DA,DE FDFA | BGBd cABc |1 
 dfeg fbaf | gABc d2 FE :|2 dcdf gfef | gABc defg |: afdA FDA,D | FAdf af d2 | (3gag (3fgf edcd | 
 (3efe (3dcB (3ABA (3GFE | DA,DE FDFA | BGBd cABc | dfeg fagb |1 aABc d2 fg :|2 aABc d2 ||  