Completed backtracking process need to comment and write script to link everything together to test with data