added testcase ex 3