adds chaining methods for constructors