Construct a melodic piece using the prescribed alphabetical outline and provided motif.
X:1
L:1/8
M:4/4
K:D
['', 'f3 d edBA', 'fgaf d3 g fgaf g3 a']  
X:1
L:1/8
M:4/4
K:D
 ag |: f3 d edBA | (3Bcd ef geag | f3 d edBA | dBAG FD D2 :| fgaf d3 g | fgaf g3 a | fgaf gfef | 
 (3gfe (3fed ed (3Bcd | fgaf d3 g | fgaf g3 a | b2 af gfed | (3Bcd ef g2 ag ||  