wrote the test for 1 and 2 and made to pass