Added reading of file. Did not handle exceptions, will do that later.