Notes on functions