added console I/O homework