Develop melodic lines utilizing the given motif according to the designated arrangement.
X:1
L:1/8
M:4/4
K:D
['d2 e2', '(G4 G>)ed>B', '(d2 F2'  
X:1
L:1/8
M:4/4
K:D
 A2 d2 c2 B2 | A2 B>c d2 e2 | f2 f>g a2 d2 | (f4 e2) A2 | A2 d2 c2 B2 | A2 B>c d2 e2 | 
 f>ga>b a2 g>f |1{df} (e4 d2) z2 :|2 (e4 d2) A>B |: c2 d2 e2 f2 | g6 c2 | d2 e2 f2 g2 | a6 a2 | 
 b3 b a3 a | a3 g f2 d2 | B>cd>e f2{f} g>f |1 (e4 d2) A>B :|2 (e4 d>)edB || 
[K:G]"^"Trio"" (G4 G>)ed>B | (G4 G>)ed>B | G2 A2 B2 d2 | g>d (3dcB A>ed>B | (G4 G>)ed>B | 
 (g4 g>)fg>a | b>f (3age d>g B>e |1 (d2 F2 G>)ed>B :|2 (d2 F2 G4) ||  