add a main class for creating chains