added valgrind ex4 example