adding memory examples