Create ex4.c

Breaking code and examining it with Valgrind