Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:2/4
K:D
['A4 B2 BA B2', 'd2 f2'  
X:1
L:1/8
M:2/4
K:D
 a2 af | d4 | e2 ec | A4 | B2 BA | B2 c2 | d2 e2 | f2 g2 | aaaf | d2 f2 | eeec | A4 | B2 BA | 
 B2 c2 | d4 :| d2 f2 | d2 f2 | efed | c2 e2 | a2 a2 | agfe | d2 A2 | F2 A2 | d2 f2 | d2 f2 | efed | 
 c2 e2 | a2 aa | agfe | d4 :|  