Hi everyone, in this video, I'm going to show you how Sweep, our AI-powered junior developer, refactors itself and adds unit tests. We asked Sweep to refactor the payment relay logic out of our on ticket method. I'll walk you through the process and show you the before and after code. Then, I'll demonstrate how Sweep adds unit tests to ensure the refactored code works correctly. Finally, I'll show you how we use a code formatter to clean up the code and create a clean pull request.