add: basic drawing algorithm