Rewrote Memory and put functions on prototype. Now works & inherits from window