mem_array_usage example has been improved