extending from ResterviceEntity

Fixes #40