problem set 4 change the state solved