implemented final_state_reached. ready to test task_manager