working example of custom class + Producer