added solution for ex5