LCTHW exercise 15 update to understand memory use.