bit of sample code