First slightly working version