Formulate melodies by integrating the given motif within the predetermined arrangement.
X:1
L:1/8
M:4/4
K:D
['AFEF D3 A DFAD FADA BAFA E3', 'dAeA f3 a'  
X:1
L:1/8
M:4/4
K:D
 AFEF D3 A | DFAD FADA | BAFA E3 F | GABc d3 B | AFEF D3 A | DFAD FADA | BAFA E3 F | GABc d2 BA |] 
 dAeA f3 a | gfed BA (3FGA | dAeA f3 a | bagf edBA | dAeA f3 a | gfed BAFA | dbaf edef | 
 dBAB d3 B |]  