Functions on manifolds