complete program ex5