adding example for valgrind demonstration