adding memory usage example