added Chain class and Spec but both are not ready yet