Output class working