Refactored class IO. #69