Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/2=100
M:3/2
K:D
['dfdf FGAF G2', 'D2 dfaf'  
X:1
L:1/8
Q:1/2=100
M:3/2
K:D
 dfdf FGAF G2 E2 | dfdf Adce d2 D2 | dfdf FGAF G2 a2 | gfed Adce d2 D2 :: dfaf dfed{d} c2{B} A2 | 
 FAdA BABG{G} F2{E} D2 | dfaf dfed c2 A2 | FAdF Ddce d4 :|  