Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['', 'f f2'  
X:1
L:1/8
M:4/4
K:D
 dB |: AF F2 G G2 B | AF F2 EGFE | DEFA dfec |1 dBAF E2 dB :|2 dBAF D2 de | f f2 a g2 fg | 
 agfg edBd | f f2 e dfec | dBAF E2 fg | af f2 bfaf | defd e2 de | f f2 e dfec | dBAF D4 ||  