Fix code samples in subscriptions example