#5: memory usage reporter - cleaned code