Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:D
['(3ABc dAFA GBAG (3FED (3FED GBAG', 'eA A2'  
X:1
L:1/8
M:4/4
K:D
 (3ABc | dAFA GBAG | (3FED (3FED GBAG | FAFA GBGB | FAFA E2 (3ABc | dAFA GBAG | (3FED (3FED GBAG | 
 FAdf gecd | (3efe dc d2 :| f | eA A2 efge | fdde fdgf | eA A2 efgf | (3efe (3dcB A2 dc | 
 BG G2 BcdB | AGFG ABcB | Acef gecd | (3efe dc d3 :|  