Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:4/4
K:C
['BEA |[M:2/2][K:D]SOSOO .!fermata!PMTuCO MD2 (AD E)DA>D D2', 'fdad edce edce e a2 ^g e']  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:2/2][K:D]SOSOO .!fermata!PMTuCO MD2 (AD E)DA>D | D2 (AG EG)G>E | D2 (AD ED)EG |1 
 A(d{e} dB){d} cAGE :|2 AcGE AD D2"^Fine" || A d2 d d2 (cd) | edcd edcd | edad fdad | edce edce | 
 e a2 ^g e =g2 e | dfed{d} cAGE | D2 (ED) EAAB | cded{d} cAG"^D. C. al Fine" E |]  