Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/2
K:D
['fe d2 Bd A2 FA BAFA D2', 'fg afed bafd Adfd edBd DFAd'  
X:1
L:1/8
M:2/2
K:D
 fe | d2 Bd A2 FA | BAFA D2 (3FED | B,DA,D DFBF | AFDF E2 fe | d2 Bd A2 FA | BAFA D2 (3FED | 
 B,DA,D DFBF | AFEF D2 :: fg | afed bafd | Adfd edBd | DFAd FAde | fdgf e2 fg | afed bafd | 
 Adfd edBd | DFAd FAdf | eABc d2 :|  