changed code to just deal with FIPS codes and to test the newly changed code
turned optimization code into a function
ran script in command line