removed old Output class and changed print method