all 5 testcases working