added file for memory related code