1. able to read input from file 2. calculate error code 0