Renamed execute method to update in State class.

Someone pointed out that update is a more appropriate name. :)