First working version of CPU example