add two functions and their test cases