Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/2
K:G
['(3DEF G2', 'BEED EFGA'  
X:1
L:1/8
M:2/2
K:G
 (3DEF |:"G" G2 GF GABc | dBge dBAc |"Em" BEED EFGA |"D" BGAF GFED |"G" G2 GF GABc | dBge dBAc | 
"Em" BEED EFGA |1"D" BdAF"G" G2 (3DEF :|2"D" BdAF"G" G2 |]: B2 |"Em" Beed e3 f | geaf gfed | 
"D" Adde d3 e | feaf gfed |"Em" Beed e3 f | geaf gfed | BEED EFGA |1"D" BdAF"G" G2 :|2 
"D" BGAF"G" GFED |]  