Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
['(3(ABc) df df ec Ac dc dB', 'BG FG'  
X:1
L:1/8
Q:1/8=232
M:4/4
K:D
|: (3(ABc) | df df ec Ac | dc dB AF DF | GF GB Af ed | c2 A2 A2 Bc | dA (3(AAA) eA (3(AAA) | 
 fe fg af dc | Bd cB AG FE | D2 D2 D2 :: (3(ABc) | dc dA FA DF | BG FG BG FG | ge fd ec dB | 
 cd ec dc Bc | Ad (3(ddd) ce (3(eee) | df (3(fff) eg (3(ggg) | fa fd eg ec | d2 d2 d2 :|  