Let M be a set of n points in the plane such that:
- There are 7 points in M that form the vertices of a convex heptagon.
- For any 5 points in M, if these 5 points form a convex pentagon, then the interior of this convex pentagon contains at least one point from M.
Find the minimum value of n.