Adding the code and test notebook