Construction of invariants