Lab4: Fixed clicking cancel when choosing number of workers for solving method 2