Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:4/4
K:Dmin
['ABAF A2 de e3 d B3 A', 'd4 agaf a2 b2 afed g2 d2'  
X:1
L:1/8
M:4/4
K:Dmin
 ABAF A2 de | e3 d B3 A | BcBA BcBA | BdAF E3 E | ABAF A2 de | e3 d B3 A | Bdef ecBA | B2 d2 d4 :: 
 agaf a2 b2 | afed g2 d2 | BcdB g2 G2 | GABG BcdB | ABcA a3 e | c2 BA A2 AG | FGAF B2 A2 | 
 BdBG E3 E | ABAF d2 dG | F2 ED D4 ||  