removed attr_accessor
updated spec