Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/16
M:2/4
K:A
['(A2c2)(B2d2) (c2e2)(B2d2)', 'fedc dcBA'  
X:1
L:1/16
M:2/4
K:A
|: (A2c2)(B2d2) | (c2e2)(B2d2) | c2(BA) G2B2 | d2B2 B4 | (A2c2)(B2d2) | (c2e2)(B2d2) | c2BA E2A2 | 
 c2A2 A4 :: e2a2 gfed | fedc dcBA | e2a2 g2f2 | g2ab e4 | e2a2 agfe | fedc dcBA | cecA BdBG | 
 c2A2 A4 |]  