Code samples from DataStax