Normalized way of setting and getting attributes