Made an IO module to handle the case input/output.