Add defstruct

Couldn't really test this but I guess it should work :)