- added lastState attribute via prototype
- added acceptState method