working example for msmq