Compose musical pieces adhering to the prearranged pattern, utilizing the provided motif.
X:1
L:1/8
M:2/4
K:D
['A2 B2 A2']  
X:1
L:1/8
M:2/4
K:D
 AABB | AG F2 | A2 B2 | A2 z2 | AABB | AGFD | AABB | AGFD | A2 B2 | A2 z2 |]  