def write_attribute(name, value)
      name = name.to_s
      modify(name, @attributes[name], value)
    end
def write_attribute(name, value)
      name = name.to_s
      modify(name, @attributes[name], value)
    end
TODO: Add typecasting