with class method and assigned instance