Add defstruct 

Make this a little more 0.13 compatible :)
Merge pull request #7 from timbuchwaldt/patch-1

Add defstruct