Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:4/4
K:A
['a2 e2', 'defg a2 e2 f2 e2 :|2 d4'  
X:1
L:1/8
M:4/4
K:A
|: e2 A2 e2 A2 | efed c2 A2 |1 d4 defg | a2 e2 f2 e2 :|2 d4 c4 | BABc A4 :: a2 e2 fece | 
 a2 e2 fece |1 d4 defg | a2 e2 f2 e2 :|2 d4 c4 | BABc A4 :|  