Console Input Output homework