Are jails and prisons designed to punish or rehabilitate the offender? Should they do one or the other or both?

Are jails and prisons designed to punish or rehabilitate the offender? Should they do one or the other or both?  Some say that federal institutions have become country clubs while facilities in some states operate no differently today than when they were built one hundred years ago or more.

Comment on these two opposite views of our American correctional services system. Post your response to this discussion assignment in a 500 word answer. Must use 4 references.