added setState so tutorial harness can edit state