Solution 2. The class does the I/O work by itselfΒΆ

not implemented yet