Charlie sample code