Construct a melodic piece using the prescribed alphabetical outline and provided motif.
X:1
L:1/8
M:6/8
K:G
['', 'BAB G2 D GAG', 'B2 d']  
X:1
L:1/8
M:6/8
K:G
 A |: BAB G2 D | GAG G2 A | BAB GAB | A2 B cBA | BAB G2 D | GAG GBc | d3 dcB | A2 B cBA :| 
 B2 d ded | ded ded | B2 d d^cd | e2 f g3 | B2 d ded | ded def | gfe dBG | A2 B cBA :|  