implemented init method to create c++ MessageBuilder