Construct a melodic piece using the prescribed alphabetical outline and provided motif.
X:1
L:1/8
Q:1/8=80
M:4/4
K:G
['B,A,B,D E2 EF G2 GA B2 ed', 'E2 EF', 'e2 dB', 'BdAB G2 GF E2 EF GF GA']  
X:1
L:1/8
Q:1/8=80
M:4/4
K:G
"^andante" B,A,B,D E2 EF | G2 GA B2 ed | efed B2 AG | FGAF EFED |"^5" B,A,B,D E2 EF | G2 GA B2 ed | 
 efed B2 AG | FGAB B,2 E2 | E4 z4 ||"^10" e2 dB BABd | e2 ef g2 ga | g2 B2 fefg | f2 ed edef | 
"^14" e2 dB g2 fe | e3 d BdAB | G2 GF E2 EF | GFGA BABd |"^18" efed B2 AG | FGAB B,2 E2 | E4 z4 |] 
"^second setting (per TuneFinder)""^21" B,A,B,D E2 EF | G2 GA B2 ed | efed B2 AG | FGAF EFED | 
"^25" B,A,B,D E2 EF | G2 GA B2 ed | efed B2 AG |1 FGAB B,2 E2 ||2[M:2/4] E4 || 
[M:4/4]"^29" e2 dB BABd | e2 ef g2 ga | g2 B2 fefg | f2 ed edef |"^33" e2 dB g2 fe | e3 d BdAB | 
 G2 GF E2 EF | GF GA BA Bd |"^37" efed B2 AG | FGAB B,2 E2 |[M:2/4] E4 |]  