wrote test cases for method 2

not finished