Firstly, I only had a problem with the 4th requirement. I made some changes and used the ConsoleHelper.writeMessage() method to print an error message. Now, the 4th requirement is working correctly, but the 2nd requirement now is wrong. But I don't see what I can change. I tried using a try-catch block, but it didn't solve the issue. What's puzzling is that earlier, I had the 2nd requirement working correctly without making any changes.