First version works with the input file