coverted tutorial to ipynb