updating sample_usage.groovy with the latest version