First working version of blackwhite