create a new class Chain