Implemented first parts of IO library