Compose a musical work using the provided motif and the given sequence in alphabetical order.
X:1
L:1/8
M:4/4
K:D
['A2 B A']  
X:1
L:1/8
M:4/4
K:D
 D | D F A A A2 B A | B2 A B d A2 | G G G A F2 F z | E F E C A,3 D | D2 D2 F2 A2 | B A B d A4 | 
 G2 G A G2 F F | E D E2 D3 x |]  