What from the gallbladder functions in the same way as in the digestive system?