Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
['FG AF Ad fe dc BG Be', 'fg (3(aaa) fd Ad fd (3(ggg) ec'  
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
|: FG | AF Ad fe dc | BG Be gf ed | cA ce ag fe | fc dB A2 FG | AF Ad fe dc | BG Be g2 ag | 
 fb fd Bg ec | d2 d2 d2 :: fg | (3(aaa) fd Ad fd | (3(ggg) ec Ac ec | fd ge af bg | ec dB A2 fg | 
 (3(aaa) fd Ad fd | (3(ggg) ec A2 ag | fd AF Eg ec | d2 d2 d2 :|  