regulating membership through contracts,