stock model with class method