Cleaned notebook code and refactored the data scope