strange behavior on one of the test files: order of member variables in memory is unknown
added while loops
added if statements
added string equal
added read line and read integer