change class name, delete package memory and rename memory2 to memory