Phase 3 passes all test cases