what are the function of the part of the uninary system