Johnson_dev: Added working version of the code