add solution for ex4