Describe homeostasis and how it is maintained.