Develop a musical composition based on the specified form and using the given motif.
X:1
L:1/8
M:2/2
K:A
['A2 (3cBA eAcA e^def']  
X:1
L:1/8
M:2/2
K:A
 E2 | A2 (3cBA eAcA | e^def e=dcA | Bcde fdde | f2 bg afedc | A2 (3cBA eAcA | e^def e=dcB | |]  