1st working version with the mouse