Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/4
M:4/4
K:A
['e d =c']  
X:1
L:1/4
M:4/4
K:A
 A A A | B2 B B | e e d =c | B2 z2 | =c c d d | e2 d d | e e d =c | B2 z2 | B B =c c | B A B2 | 
 B B E E | =G G A A | B2 z B | d A B =c | e d =c c | B A A2 |]  