ch3 proof of memory usage (begin)