flush() method re-implemented and output verified.