Construct a melodic piece using the prescribed alphabetical outline and provided motif.
X:1
L:1/8
M:2/2
K:D
['A3 B AFED', 'f3 d', 'A2 FA', 'b afed B2 de f2 fd g2']  
X:1
L:1/8
M:2/2
K:D
 A3 B AFED | B3 A BcdB | A3 B AFED |1 gfed BcdB :|2 gfed Bcde || f3 d g3 e | f3 d Bcde | 
 f3 d g2 fg | afed Bcde | f3 d g3 e | f3 d Bcdc | defg a3 b | afed BcdB ||"^variations" FAAB AFED | 
 B3 A Bc d2 | FAAB ABde | fded BedB | A2 FA ADFA | B2 GB BGdB | A2 FA A2 de | fded BAde || 
 f3 a g2 ge | f2 ed Bcde | fefa g3 b | afed B2 de | f2 fd g2 ge | fefd Bcde | defg afbf | 
 afed BcdB ||  