To hash and attr accessor