Updated challenge2 so that it updates the status correctly