fixed fun2 in ex1