Develop melodies adhering to the specified musical structure and using the offered theme.
X:1
L:1/8
M:4/4
K:D
['faaf egfe'  
X:1
L:1/8
M:4/4
K:D
"D" FG |"G" BAFA D2 FA |"G" BABd e2 de |"D" faaf egfe |"D" dfed B2 dB |"G" BAFA D2 FA | 
"G" BABd e2 de |"D" faaf egfe |"D" d2 d2 d2 :|"D" fg |"A7" afdf a2 gf |"G" gfga b2 ag | 
"D" faaf egfe |"D" dfed B2 dB |"G" BAFA D2 FA |"G" BABd e2 de |"D" faaf egfe |"D" d2 d2 d2 :|  