finished first working version