Solution for fun1'