testCase4 working (deliverable 3) added I/O