adding the freehand drawing simulation