Add a temporary Memory class for the convenience of writing code, which
will be replaced by Jessica's Memory class.