Structs now have methods

Fixes #112