Construction of A_\infty algebra