Compose a piece by incorporating the set musical pattern in its alphabetical form along with the given melodic subject.
X:1
L:1/8
M:6/8
K:G
['B BAG', 'd2 e f2 a gfe d2 B']  
X:1
L:1/8
M:6/8
K:G
|: d2 B BAG | A3 ABA | G2 E c2 B | BAG ABc | d2 B BAG | A3 ABA | G2 E c2 E | D6 :: d2 e f2 a | 
 gfe d2 B | G2 B c2 B | BAG A3 | d2 e f2 a | gfe d2 B | G2 B c2 E | D6 :|  