Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/16
M:2/4
K:D
['f2fe d2A2 B2BA G2E2 g2(gf) e2b2', 'd4 D2FA d2f2 (ag)eg b2a2 (ag)ge (gf)fd'  
X:1
L:1/16
M:2/4
K:D
|: f2fe d2A2 | B2BA G2E2 | g2(gf) e2b2 | (ag)ec d4 :: D2FA d2f2 | (ag)eg b2a2 | (ag)ge (gf)fd | 
 (fe)ec d4 :|  