Implement date i/o
finish ex 9.4