fixing type for attributes/memory.rb