Organize sample code