A new treatment of convex functions