Changed return type of constructors from id to instancetype.