A class that works