Converted the original .py example file to ipynb converted .py file