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:2/4
K:G
['e d']  
X:1
L:1/8
M:2/4
K:G
 e d e d | B e d2 | e d B A | G E G2 | d d B d | G B A2 | d G G E | D4 |]  