Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['f2 f2 g2 g2 fgfe dA F2', 'F2 d2 d2 e2 ed cdef dA'  
X:1
L:1/8
M:4/4
K:D
 f2 f2 g2 g2 | fgfe dA F2 | defd gfed | AF E/F/G/E/ F2 F2 :: d2 d2 e2 ed | cdef dA F2 | defd gfed | 
 AF E/F/G/E/ F2 F2 :|  