add configure and use attr_accessor