Added ostream and working on istream