Added input and output via of and ifstream