cassandra code