Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/2
K:D
['d2 fd A2 fe defg afdf'  
X:1
L:1/8
M:2/2
K:D
 A |"D" d2 fd A2 fe | defg afdf |"Em" e2 ge B2 ed |"A" cdef gece |"D" d2 fd A2 fe | defg afdf | 
 fafd fafd |"G" Bg"A7"ec"D" d2 |: cd |"A7" eAfA gAaA |"D" faaf gfed |"A7" AaBa cada | 
"^(E7)" efed"A7" cBAc |"D" dAeA fAgA | faaf"A7" gfeg |"D" fafd fafd |"G" Bg"A7"ec"D" d2 :|  