# implemented GetJobsByState
# minor fixes around the code