Adding Getters and Setters for Memory