Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:4/4
K:A
['BdcB AGAB', '(3cdc A2'  
X:1
L:1/8
M:4/4
K:A
 ag | fcfe c2 ec | (3B/c/B Ac BdcB | AGAB cAce | f/g/a ec B2 ce | f2{a} fe ceec | BAFA BdcB | 
 AGAB ceBd | (3cdc A2 Agag | f3 e ceec | BAFA BdcB | AGAB cAce | f/g/a ec B2 ce | f2{a} fe ceec | 
 BAFA BdcB | AGAB ceBd | (3cdc A2 A3 B || cAce a2 ga | baga (3fgf e2 | eaga fece | f/g/a ec B3 c | 
 cefg a2 gf | ecBA BdcB | AGAB ceBd |1 (3cdc A2 A3 B :|2 (3cdc A2 Agag ||  