class works