On affine algebras