example of raw serialization with weka