proper goals of imprisonment

What are the proper goals of imprisonment in the United States? How could our current system be improved? Would your plans work — if implemented? Does the goal of justice for victims of crime conflict with the goal of rehabilitation?