Passes test cases