First working version of demo