Resource type

@airosa 

Closes #23