Algebra of Invariants