add '* 1.0' to get correct result
change input file to 'sample.txt' for testing