Change method to Class.