The arithmetic of function fields