First working simulation