simple example for protobuf closure