initial versions of line and rectangle