A first working version