practices sample code