how do the intestines work?