Memory Types and Composing Memory