implement a simple dragger