wrote a test case for 2and made it pass