ChatGPT also taught me how to go about refactoring the code after the test passes. It gave me several options, each more involved and of higher resolution than the previous. A very detailed and well reasoned explanation of the process of refactoring.