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/2
K:D
['a2{g} Tf2 gefd', 'Ad AG Fd']  
X:1
L:1/8
M:2/2
K:D
 a2{g} Tf2 gefd | Adcd e/d/c/d/ eA | a2{g} Tf2 gefd | Ad c/d/e/c/ d2 D2 |] Ad AG Fd AG | 
 FA de Tf2 e2 | Ad AG Fd Ag | f/g/a Ac d2 D2 |]  