How to tie a knot?