studying part 2 memory leaks