add class method valid? to readme