reading input from file. BIG BUGS in execution.