4.
(a) Show that open balls and open cubes in R^n are convex.
(b) Show that (open and closed) rectangles in R^n are convex.