First try at a memory implementation.