read and parse input file
add test