commit 7 : reverse test cases are passing