Won't pass the final test, however, when I include a print statement at the end of the removeItemFromMap method using entrySet(), no entries below 500 are present (in intelliJ at least).