Carried out multiple test cases. Results seem OK