point and rect class add.
draw primitive to use rect class.