add function2 and function4, tests file