add attr_reader method for @context