mastered the valgrind memory leak checker :)