Make state immutable in tutorial (eek)