Added new vesion of implementation
Added reading file line by line code