wrote a test case for 3and made it pass