Added simple cpp example.