An attempt to re-write the attribute accessor method of Ruby in order to understand how it works