client example from cassandra trunk