add memory management chapter