Compose melodies using the provided motif and adhering to the designated musical form.
X:1
L:1/8
M:2/2
K:D
['B2 dB', 'g2 fg'  
X:1
L:1/8
M:2/2
K:D
 A3 d B2 dB | AD(3FED AD (3FED | A3 d B2 dB | cdeg fddB | A3 d B2 dB | AD(3FED AD (3FED | 
 A3 dA B2 dB | cdeg fdde |] f3 a g2 fg | eA (3cBA eA (3cBA | f2 af g2 fg | afge fdde | f3 a g2 fg | 
 eA (3cBA eA (3cBA | f2 af g2 fg | afge fddB |]  