Reduced lines of code and added constructor test for crawler