add the method for read from a file
add the input file