implemented extends
Merge pull request #6 from bydga/master

Implemented protobuf extends