finished up the 3rd C assignment (added input/output stuff)