tested all code. added output text file