How does inpatient addiction treatment-work