State now supports methods on structs