First working version of Bloch simulator