Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:Gmin
['DFBd cdeg f2 B2', 'B2 F2 BFBd ceAc dB B2 gfdB'  
X:1
L:1/8
M:4/4
K:Gmin
 FE | DFBd cdeg | f2 B2 BdcB | Acfa gc=eg | agf=e _ecAE | DFBd cdeg | f2 B2 BFDF | EDEG FAce | 
 d2 B2 B2 :: F2 | BFBd ceAc | dB B2 gfdB | Acfa gc=eg | agf=e _ecAE | DFBd Ace=e | gfdB FEDF | 
 EDEG FAce | d2 B2 B2 :|  